package com.leoman.utils;

import java.util.Calendar;

/**
 * Created by wangbin on 2014/12/6.
 */
public class UploadUtil {

    private static final String TYPE_IMAGES = "images";
    private static final String TYPE_SUOLUE = "suolue";
    private static final String TYPE_SUOLUE2 = "suolue2";


    public static String getImagesUpladPath() {
        Calendar now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_IMAGES + "/" + year + "/" + month + "/";
        return uploadFilePath;
    }

    public static String getSuoLueUpladPath() {
        Calendar now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_SUOLUE + "/" + year + "/" + month + "/";
        return uploadFilePath;
    }

    public static String getSuoLue2UpladPath() {
        Calendar now = Calendar.getInstance();
        int year = now.get(Calendar.YEAR);
        int month = now.get(Calendar.MONTH) + 1;
        String uploadFilePath = TYPE_SUOLUE2 + "/" + year + "/" + month + "/";
        return uploadFilePath;
    }

}
